package com.shujia;

public class JavaStu extends JavaPerson {
    //    @Override
//    public String skill() {
//        System.out.println("stu");
//        return "hello";
//    }
    public static void main(String[] args) {
        JavaPerson javaPerson = new JavaPerson();

        AbstractTest abstractTest = new AbstractTest() {
            @Override
            public void getValue() {
                System.out.println("这是内部类的实例对象中的getValue方法");
            }
        };

        abstractTest.getValue();

    }

}


class JavaPerson {
    // 构造代码块...
    {
        System.out.println("JavaPerson正在构建....");
    }

    static {
        System.out.println("JavaPerson类正在加载....");
    }

    public void skill() {
        System.out.println("person");
    }
}

abstract class AbstractTest {

    abstract public void getValue();
}